package ec.edu.udla.fichamedica.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;


/**
 * @author Paul Cahue\u00F1as
 * @version 1.0
 * @created 27-jun-2010 15:48:41
 */
@javax.persistence.Entity
public class Person extends Entity {

	@Column
	private String codigo;
	
	@Column
	private String surname;
	
	@Column
	private String name;
	
	@Column
	private Date birthdate;
	
	@Column
	@Enumerated(EnumType.STRING)
	private GenderType genderType;

	public Person(){

	}

	@Override
	public void finalize() throws Throwable {
		super.finalize();
	}



	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}

	public GenderType getGenderType() {
		return genderType;
	}

	public void setGenderType(GenderType genderType) {
		this.genderType = genderType;
	}

	public String getCodigo() {
		return codigo;
	}

	public void setCodigo(String codigo) {
		this.codigo = codigo;
	}

}